package com.java.test.java8.stream.reduce;

public class User {
    enum Sex {
        /** 女性 */
        FEMALE,
        /** 男性 */
        MALE;
    }

    private int id;

    private String name;

    private int age;

    private Sex gender;



    public User(int id, String name, int age, Sex gender) {
        super();
        this.id = id;
        this.name = name;
        this.age = age;
        this.gender = gender;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public Sex getGender() {
        return gender;
    }

    public void setGender(Sex gender) {
        this.gender = gender;
    }

}
